using System;
using Common.NotifyEvent;

namespace device
{
	[Serializable]
	public class RunTemperature : NotifyPropertyChanged
	{
		private double _BlockTemperature;

		private double _TubeTemperature;

		private double _HotlidTemperature;

		private TimeSpan _TimeRecord;

		private double[] _SubBlockTemperture = new double[8];

		public double BlockTemperature
		{
			get
			{
				return _BlockTemperature;
			}
			set
			{
				if (_BlockTemperature != value)
				{
					_BlockTemperature = value;
					OnPropertyChanged("BlockTemperature");
				}
			}
		}

		public double TubeTemperature
		{
			get
			{
				return _TubeTemperature;
			}
			set
			{
				if (_TubeTemperature != value)
				{
					_TubeTemperature = value;
					OnPropertyChanged("TubeTemperature");
				}
			}
		}

		public double HotlidTemperature
		{
			get
			{
				return _HotlidTemperature;
			}
			set
			{
				if (_HotlidTemperature != value)
				{
					_HotlidTemperature = value;
					OnPropertyChanged("HotlidTemperature");
				}
			}
		}

		public TimeSpan TimeRecord
		{
			get
			{
				return _TimeRecord;
			}
			set
			{
				if (!(_TimeRecord == value))
				{
					_TimeRecord = value;
					OnPropertyChanged("TimeRecord");
					OnPropertyChanged("DateTimeRecord");
				}
			}
		}

		public double[] SubBlockTemperture
		{
			get
			{
				return _SubBlockTemperture;
			}
			set
			{
				_SubBlockTemperture = value;
			}
		}
	}
}
